package com.travel.web.common;

import org.apache.struts2.dispatcher.DefaultActionSupport;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;


public abstract class AbstractAction extends DefaultActionSupport implements ApplicationContextAware {
	private static final long serialVersionUID = -1656754891826769705L;
	protected ApplicationContext applicationContext;

	public void setApplicationContext(ApplicationContext applicationContext) {
		this.applicationContext = applicationContext;
	}

	public ApplicationContext getApplicationContext() {
		return this.applicationContext;
	}

	public Object getBean(String strBeanName) {
		return this.applicationContext.getBean(strBeanName);
	}

}